package com.mp.mp.controller;

import com.mp.mp.dao.UserMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class IndexController {


    @Resource
    UserMapper userMapper;

    @RequestMapping("/")
    @ResponseBody
    public String index() {
        return "基础sb配mybatisPlus";
    }

    @RequestMapping("/find")
    @ResponseBody
    public Object find() {
        List ls = userMapper.selectList(null);
        return ls;
    }
}
